package com.ncst.backend.mapper;
import com.ncst.backend.domain.DrugInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 药品信息Mapper接口
 */
@Mapper
public interface DrugInfoMapper {

    DrugInfo selectById(@Param("id") Integer id);
    List<DrugInfo> selectAll();
    List<DrugInfo> selectByCondition(DrugInfo drugInfo);
    List<DrugInfo> selectByPage(@Param("offset") Integer offset, @Param("limit") Integer limit);
    Long countAll();
    Long countByCondition(DrugInfo drugInfo);
    int insert(DrugInfo drugInfo);
    int insertBatch(@Param("list") List<DrugInfo> list);
    int updateById(DrugInfo drugInfo);
    int deleteById(@Param("id") Integer id);
    int deleteByIds(@Param("ids") List<Integer> ids);
}
